package capaDominio;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class threadWeb extends Thread {
	private ServerSocket ss;
	
	public threadWeb() {
		
	}
	
	@Override
	public void run() {
		try {
			System.out.println("threadWeb.start: Abriendo el puerto 80");
			ss = new ServerSocket(80);
			Socket s = ss.accept();
			System.out.println("threadWeb.start: Aceptamos una conexion");
			
			new ConexionWeb(s).start();
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

